<?php
/**
 * Created by PhpStorm.
 * User: yangfan
 * Date: 2019/12/2
 * Time: 4:03 PM
 */

namespace App\BO\OrderStatus\Events;

use App\BO\PaymentState\Pay\PayInfo;
use App\Entities\OrderEntity;

/**
 * 订单支付成功事件
 * Class OrderPaySuccessEvent
 * @package App\Events\Order
 */
class OrderPaySuccessEvent extends ABaseOrderEvent
{
    /**
     * @var PayInfo
     */
    private $payInfo;

    public function __construct(OrderEntity $orderEntity, PayInfo $payInfo)
    {
        parent::__construct($orderEntity);
        $this->payInfo = $payInfo;
    }

    /**
     * @return PayInfo
     */
    public function getPayInfo(): PayInfo
    {
        return $this->payInfo;
    }
}
